package com.cos.shop.dao;

import com.cos.shop.entity.Product;

import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;

/**
 * @author: COS
 * @time: 2022/2/24 9:07
 * @description:
 */
public interface ProductDao {
    List<Product> getProductByTid(int typeid) throws SQLException;

    Long getProductCount(int typeid) throws SQLException;

    List<Product> getProductPageByTid(int typeid, int startRow, int pages) throws SQLException;

    Product getProductById(int pid) throws SQLException, InvocationTargetException, IllegalAccessException;
}
